﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RoleInput.ascx.cs" Inherits="MvcApplication5.Views.Master.RoleInput" %>
<script src="../../Scripts/Master/Control/RoleInput.js" type="text/javascript"></script>
<div id="addRoleInputFrame" style="width: 350px; height: 100px; background-color: White;
    display: none;">
    <div id="ctlFrame" style="width: 340px; height: 70px;">
        <table class="datatable" width="100%" cellpadding="0" cellspacing="0" style="margin-top: 10px;">
            <tr>
                <th width="30%">
                    角色名称
                </th>
                <td>
                    <span class="mustinput">
                        <input type="text" id="role_name" runat="server" style="width: 170px;" />
                    </span>
                </td>
            </tr>
        </table>
    </div>
    <div style="width: 340px; text-align: center; clear: both;">
        <img src="~/Content/images/button/btn_save.png" id="btnSave" runat="server" style="cursor: pointer" />
        <img src="~/Content/images/button/btn_close.png" id="btnClose" runat="server" style="cursor: pointer" />
    </div>
    <input type="hidden" id="role_id" runat="server" />
</div>
<script type="text/javascript">
        var roleInputIns = null;
    function RoleInput_<%= this.ClientID %>_Page_Load(){

        <%= GetJSInstance()%> = new RoleInput();

        roleInputIns = <%= GetJSInstance()%>;

        roleInputIns.dom.clientID        = "<%= this.ClientID %>";
        roleInputIns.dom.role_id         = "<%= role_id.ClientID %>";
        roleInputIns.dom.role_name       = "<%= role_name.ClientID %>";

        roleInputIns.dom.btnSave         = "<%= btnSave.ClientID %>";
        roleInputIns.dom.btnClose        = "<%= btnClose.ClientID %>";

        roleInputIns.init();
   }

    RoleInput_<%= this.ClientID %>_Page_Load();
</script>
